﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YanZhiwei.DotNet2.Utilities.Tool;

namespace YanZhiwei.DotNet2.Utilities.Examples
{
    public class ObjectIdExample
    {
        public static void Demo() {

            ObjectId _emptyOid = ObjectId.Empty;
            Console.WriteLine(_emptyOid);
            for (int i = 0; i < 10; i++)
            {
                ObjectId _oid = ObjectId.NewObjectId();
                Console.WriteLine(_oid);
            }

            ObjectId _existingOid;
            ObjectId.TryParse("507f191e810c19729de860ea", out _existingOid);
            Console.WriteLine(_existingOid);

            Console.ReadKey();

        }
    }
}
